#ifndef GAMEWINDOWDEBUG_H
#define GAMEWINDOWDEBUG_H

#include "LOpenGL.h"
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include <stdarg.h>		// for doing gl_log() functions that work like printf()

#define GL_LOG_FILE "gl.log"

class WindowDebug
{
public:
	WindowDebug(GLFWwindow* window);
	~WindowDebug();

	bool restart_gl_log();
	bool gl_log(const char* message, ...);
	bool gl_log_err(const char* message, ...);
	void log_gl_params();
	void _update_fps_counter();

private:
	double previous_seconds;
	int frame_count;
	GLFWwindow* m_window;
};

#endif